package reflect;

import java.util.Arrays;

public class ArgsDemo {
    public static void main(String[] args) {
        doSome(1, "张三", "李四", "王五");
        doSome(2, "张三", "李四");
    }

    public static void doSome(int a, String... arg) {
        System.out.println(a);
        System.out.println(arg.length);
        System.out.println(Arrays.toString(arg));
    }
}
